package com.itzz.spring_zhoneHeng.service;

import com.itzz.spring_zhoneHeng.base.RestResponse;
import com.itzz.spring_zhoneHeng.pojo.Chapters;

public interface ChaptersService {
    //查询所有
    RestResponse queryAll(Chapters chapters, Integer pageNum, Integer pageSize);

    //回显章节和书名及其审核状态
    RestResponse queryChaptersById(Integer id);

    //修改书名和章节名及其状态
    RestResponse update(Chapters chapters);

    //添加章节
    RestResponse add(Chapters chapters,Integer bookId);
}
